package v;

/**
 * Created by v on 17-3-24.
 */
public class Questionnair {
    public static final String[] question1={
            "java","php","python","C++","VB"
    };

    private boolean[] select1;

    public Questionnair(){
        select1=new boolean[5];
        select1[0]=true;
        select1[1]=true;
        select1[4]=true;
        System.out.println(select1[3]);
    }

    public boolean[] getSelect1() {
        return select1;
    }

    @Override
    public String toString() {
        String string="";

        for(int i=0;i<select1.length;i++){
            if(select1[i]){
                string+=question1[i]+",";
            }
        }

        return string.substring(0,string.length()-1);
    }
}